import javax.swing.*;

/**
 * Created with IntelliJ IDEA.
 * Description:单链表
 * User: 晓星航
 * Date: 2022-10-28
 * Time: 20:38
 */
//ListNode代表一个节点
class ListNode {
    public int val;
    public ListNode next;//next存储的是结点类型

    public ListNode(int val) {
        this.val = val;
    }

}
public class MyLinkedList {
    public ListNode head;//链表的头引用


}
